<?php


class BlogPostSubscriptionTable extends Doctrine_Table
{
  public function findWithPost(array $params)
  {
    return $this->createQuery('a')->
      leftJoin('a.Post')->
      where('a.token = ?', $params['token'])->
      fetchOne();
  }
}